<?php
require_once 'pworks/common/cache/ICacheHelper.iface.php';

class DaoFactory{

	static private $_cache;
	static private $_configLoader;

	static public function setCache(ICacheHelper $cache){
		self::$_cache = $cache;
	}

	static public function register($classname){
		//TODO ...
	}

	static public function init($url){
		//TODO ...
	}

	
	/**
	 * @param id, string, id of dao
	 * @return IDao
	 */
	static public function getDao($id){

		//TODO ...
	}

	/**
	 * @param dsId, id for datasources
	 * @return Resource, database connection
	 */
	static private function getConnection($dsId){
		//TODO ...
	}
}
